/*
 * Copyright (C) 2012 VinaVAC. All rights reserved.
 */
package org.vinavac.mob.mbean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.vinavac.bean.AbstractSessionBean;
import org.vinavac.bean.OccupationSessionBean;
import org.vinavac.entity.Occupation;

/**
 *
 * @author Quang <quangtin3@gmail.com>
 */
@ManagedBean(name = "occupationMobileBean")
@SessionScoped
public class OccupationMobileBean extends AbstractMobileBean<Occupation> {

    @EJB
    private OccupationSessionBean ejbSessionBean;

    public OccupationMobileBean() {
        super();
    }

    @Override
    protected Occupation emptyEntity() {
        return new Occupation();
    }

    @Override
    protected AbstractSessionBean<Occupation> getSessionBean() {
        return ejbSessionBean;
    }

    public Occupation find(String key) {
        return getSessionBean().find(key);
    }
}
